home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Directorty Opus 5 - Magellan 2
/
Opus 5 - Magellan 2.iso
/
Extras
/
playcdda1.1_opus5
/
arexx
/
PlayMPEG_DT.dopus5
< prev
Wrap
Text File
|
1995-08-13
|
2KB
|
75 lines
/* Programm: PlayMPEG_DT.dopus5
** $VER: PlayMPEG_DT.dopus5 V2.2
**
**
** Needed: Directory Opus V5.xx (© by Jonathan Potter & GPSoftware)
** mpega (© 1995 by Stephane Tavenard) or/and
** PeggyPlus MPEG-Card (© Ingenierbuero Helfrich)
** PeggyPlus:MPEGPlayer >= V4.7
**
** Copyright © 1995 Eckhard Ludwig (Eckhard@top.east.de)
** PlayMPEG_DT.dopus5 is freeware. It may be distributed freely.
**
** Play compressed sound (MPEG Layer 1&2) from DOpus5. Only for DOpus5-filetypes,
** install filetypes "Compressed sound, MPEG [L2]" to DOpus5:Filetypes
**
** Call as:
** --------------------------------------------------------------------------
** (Doubleklick) ARexx DOpus5:ARexx/PlayMPEG_DT.dopus5 {f} {Qp}
** --------------------------------------------------------------------------
** Set all Attribut off.
*/
/*- Path to MPEGPlayer command --edit options in line 71 !-----------------*/
Player = "C:mpega" /* Softwareplayer */
/*-------------------------------------------------------------------------*/
Index = 'T:PlayDOpus5Index.temp'
parse arg '"' Titel '"' portname cmd
if portname='' then
portname='DOPUS.1'
address value portname
options results
options failat 21
address command 'Delete >NIL: '||Index
if exists(Index) then do
address value portname
dopus front
dopus request '"Bitte warten, MPEG-Player läuft bereits." Abbruch'
exit
end
if ~show('l','rexxsupport.library') then
call addlib('rexxsupport.library',0,-30,0)
if showlist("A","PEGGYPLUS")=1 then do
if ~show('P','Peggy') then do
address command 'stack 8192'
address command 'RUN >NIL: <NIL: PEGGYPLUS:MPEGPlayer'
address command 'waitforport Peggy'
address value portname
dopus front
end
end
if show('P','Peggy') then do
address 'Peggy'
open '"'Titel'"'
setwindow XOFF 0 YOFF 0 WIDTH 1 HEIGHT 1 XPIC 0 YPIC 0
Play async
end
else do
if ~exists(Player) then do
dopus front
dopus request '"PlayMPEG_DT.dopus5 Error ! MPEG-Player not found: (Path: 'Player' ?)" Exit'
Exit
end
address command "Run "||Player||" -p -f0 -d2 -q2 "||Titel
end
address value portname
dopus front